package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServiceResponse;
import com.mmall.pojo.Product;
import com.mmall.vo.ProductDetailVo;

/**
 * Created by sc on 2017/8/19.
 */
public interface IProductService {
    ServiceResponse saveOrUpdateProduct(Product product);

    ServiceResponse<String> setSaleStatus(Integer productID, Integer status);

    ServiceResponse<ProductDetailVo> manageProductDetail(Integer productid);

    ServiceResponse<PageInfo> getProductList(int pageNum, int pageSize);

    ServiceResponse<PageInfo> searchProduct(String productname, Integer productid, int pagenum, int pagesize);

    ServiceResponse<ProductDetailVo> getProductDetail(Integer productid);

    ServiceResponse<PageInfo> getProductsByKeywordCategory(String keyword, Integer categoryid, int pageNum, int pageSize, String orderby);

}
